package com.cui.project.manager;

import com.api.common.constant.APIInterfaceMqConstant;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author: 崔老爷
 * Date: 2024/10/18 13:37
 * @Description:
 */
@Component
public class APIDynamicRouteManager {

    @Resource
    private RabbitTemplate rabbitTemplate;
    public  void  sendMessage(String message){
        rabbitTemplate.convertAndSend(APIInterfaceMqConstant.API_DYNAMIC_ROUTE_EXCHANGE,
                APIInterfaceMqConstant.API_DYNAMIC_ROUTE_ROUTE_KEY,message);
    }
}
